package com.unhz.generator.dao;

import com.unhz.generator.pojo.AreaDict;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 沈佳庆
 * @Description: 行政区域数据字典
 * @Date: Created in 下午 6:53 2018/1/23 0023
 * @Modified By:
 */
@Repository
public interface AreaDictMapper{

    List<AreaDict> findArea();

    List<AreaDict> findCountry( @Param("areaCode") String areaCode );

    List<AreaDict> findCity( @Param("areaCode") String areaCode );

    AreaDict findAreaNameByProvince( @Param("areaCode") String areaCode );

    AreaDict findAreaNameByCity( @Param("areaCode") String areaCode );

    AreaDict findAreaNameByCountry( @Param("areaCode") String areaCode );

    List<AreaDict> selectAreaDictAll();

}